home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Mac OS 8.5 Updaters / RealPC⁄Soft Windows / SoftWindows / SoftWindows Upgrade Disk / INSIGNIA / DOSBATCH.BAT < prev    next >
Encoding:
DOS Batch File  |  1998-08-24  |  1.7 KB  |  68 lines

  1. rem [
  2. rem    Name:        u.dosbatch.bat
  3. rem
  4. rem    Derived from:    (original)
  5. rem
  6. rem    Author:        David Lillie
  7. rem
  8. rem    Created on:    Sep 1996
  9. rem
  10. rem    Sccs ID:    @(#)u.dosbatch.bat    1.12 02/01/98
  11. rem
  12. rem    Coding Stds:    
  13. rem
  14. rem    Purpose:    Update SoftWindows config.sys and autoexec.bat files.
  15. rem
  16. rem    Parameters:    1    host OS type i.e. "mac" or "unix"
  17. rem            2    two-letter language ID
  18. rem            3    OS version; must be "msdos", "pcdos", "win31"
  19. rem                or "win95".  (win31 includes WfW 3.11).
  20. rem
  21. rem    Copyright 1997 Insignia Solutions PLC. All rights reserved.
  22. rem ]
  23.  
  24. set langID=%2
  25.  
  26. IF NOT EXIST c:\insignia\old\nul md c:\insignia\old    >>c:\insignia\up.log
  27. copy c:\autoexec.bat c:\insignia\old            >>c:\insignia\up.log
  28. copy c:\config.sys c:\insignia\old            >>c:\insignia\up.log
  29.  
  30. rem  Select autoexec and config files according to OS and host
  31. goto os_%3
  32.  
  33. REM Use MS-DOS autoexec and config files
  34. :os_msdos
  35. set auto=autoexec
  36. set conf=config
  37. goto %1_auto
  38.  
  39. REM Use PC DOS autoexec and config files
  40. :os_pcdos
  41. set auto=autoexpd
  42. set conf=configpd
  43. goto %1_auto
  44.  
  45. REM Use Windows 3.x versions of autoexec & config files
  46. :os_win31
  47. set auto=autoex31
  48. set conf=config31
  49. goto %1_auto
  50.  
  51. REM Use Windows 95 versions of autoexec & config files
  52. :os_win95
  53. set auto=autoex95
  54. set conf=config95
  55. goto %1_auto
  56.  
  57. :mac_auto
  58. copy d:\insignia\%1\%auto%.%langID% c:\autoexec.bat    >>c:\insignia\up.log
  59. copy d:\insignia\%1\%conf%.%langID% c:\config.sys    >>c:\insignia\up.log
  60. goto end
  61.  
  62. :unix_auto
  63. keybconf c:\insignia\keyboard.def d:\insignia\%1\%auto%.%langID% c:\autoexec.bat    >>c:\insignia\up.log
  64. keybconf c:\insignia\keyboard.def d:\insignia\%1\%conf%.%langID% c:\config.sys    >>c:\insignia\up.log
  65. goto end
  66.  
  67. :end
  68.